package homework.four;

import java.io.Serializable;

public class Staff implements Serializable {

    private String name;//姓名
    private int age;//年龄
    private double salary;//工资

    @Override
    public String toString() {
        return "姓名 = " + name + "\t" +
                " 年龄 =" + age +"\t"+
                " 工资 =" + salary;
    }

    public Staff(String name, int age, double salary) {
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }
}
